16. Basic Idling Resource Code Sample

High-five. We just went through a lot of code to understand in that Idling Resources sample. To double-check your understanding, complete the following quiz.

Select all the statements that are true of the BasicIdlingResourceSample project we just looked at:

SOLUTION:
  • The `MainActivity` implements the `MessageDelayer.DelayerCallback` which is triggered in the `onClick()` method.
  • `MainActivity` is notified asynchronously that the time delay, `DELAY_MILLIS`, is up by a handler which executes a Runnable that returns back a message in the method `onDone()`.